﻿<%@ Page Language="C#" MasterPageFile="~/Index.master" AutoEventWireup="true" CodeFile="productShow.aspx.cs" Inherits="productShow" Title="产品展示" %>

<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.Sql" %>
<%@ import Namespace="System.Xml" %>
<%@ import Namespace="System.Data.SqlClient" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link rel="stylesheet" type="text/css" href= "CustomTool/productsort/productsort.css"/>
    <link rel="Stylesheet" type="text/css" href="Style/StyleSheet.css" />
</asp:Content>
  
<asp:Content ID="Content2" ContentPlaceHolderID="main" Runat="Server">
    <div style="float:left; background-color:White; width:250px; height:99.7%; border-right:solid 2px #C0C0C0; border-left:solid 2px #C0C0C0; border-top:solid 2px #C0C0C0; ">
        <div id="DIV" style="width: 250px; height: 290px;">
          <div id="idSlideView3" class="sv3">
          <% 
              try
              {
                  BLL.Business.BookBLL bookBLL = new BLL.Business.BookBLL();

                  DataSet dsBig = new DataSet();
                  dsBig = bookBLL.SelectBigType();                         // 获得大类的信息

                  foreach (DataRow bigRow in dsBig.Tables[0].Rows)
                  {
                      String BigTypeId = bigRow.ItemArray[0].ToString();   // 获得大类编号
                      String BigTypeName = bigRow.ItemArray[1].ToString(); // 获得大类名称
                        %>
                        <dl>
                          <dt> <%= BigTypeName%> </dt>
                        <%

                          DataSet dsSmall = new DataSet();
                          dsSmall = bookBLL.SelectSmallType(Int32.Parse(BigTypeId));

                          foreach (DataRow smallRow in dsSmall.Tables[0].Rows)
                          {
                              String SmallTypeId = smallRow.ItemArray[0].ToString();
                              String SmallTypeName = smallRow.ItemArray[1].ToString();
                             %>  
                               <dd> <a href='productList.aspx?SmallType_Namestr=<%= SmallTypeName%>' target="Product" style="text-align:left; height: 20px;"><%= SmallTypeName%> </a></dd>
                             <%
                          }%>
                         </dl>
                              
                 <%}
              }
              catch (Exception ex)
              {
                  Response.Write("<script>alert('" + ex.Message.ToString() + "')</script>");
              }%>                    
           </div>
        </div>
    </div>
    <div style="float:right; width:680px; height:99.7%; border-left:solid 2px #C0C0C0; border-right:solid 2px #C0C0C0; border-top:solid 2px #C0C0C0; ">
       <div style=" margin:0 auto; width:680px">
        <iframe id="Product" src="<%= Request.QueryString["url"].ToString() %>" style="width:100%; height:100%" frameborder="0" ></iframe> 
      </div>
    </div>
<script language="javascript" type="text/javascript" src="CustomTool/productsort/productsort.js"></script>
</asp:Content>

